*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-image: linear-gradient(to right, #7d5fff,#7158e2);
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.search{
    height: 50px;
    position: relative;
}

.search input{
    background-color: #fff;
    border: 0;
    font-size: 18px;
    height: 50px;
    width: 50px;
    transition: width 0.3s ease;
    padding: 15px;
}

.btn{
    background-color: #fff;
    border: 0;
    cursor: pointer;
    padding: 15px;
    height: 50px;
    width: 50px;
    transition: transform 0.3s ease;
    position: absolute;
    left: 0;
    top:0;
    font-size: 24px;
}

.btn:focus,input:focus{
    outline: 0;
}

.search.active input{
    width: 200px;
}

.search.active button{
    transform: translateX(198px);
}
